<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
欢迎{{ request.session.user }}登录
<button><a href="{% url 'add' %}">新增</a></button>
<table>
    {% for all in alls %}
        <tr>
            <td>{{ forloop.counter }}</td>
            <td>{{ all.iname }}</td>
            <td>{{ all.iPrice }}</td>
            <td>{{ all.iMark }}</td>
            <td>{{ all.dataa|date:'Y-m-d' }}</td>
            <td>{{ all.Car_type.cname }}</td>
            <td><a href="{% url 'delete' id=all.id %}">删除</a></td>
            <td><a href="{% url 'update' id=all.id sid=all.Car_type.id %}">修改</a></td>
        </tr>
    {% endfor %}
</table>



</body>
</html>